[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
INC VAR
Function
Increment the value of a variable specified by VAR.
Syntax
INC var
var - The variable with the value to increment
Remarks
Many programs require extensive addition and subtraction, and most
often, a value is increased or decreased by 1. This statement allows for
a shorter, more efficient method of increasing (incrementing) a value
by 1 than adding 1 to a variable and assigning the result to the same
variable.
Examples
INTEGER i
PRINTLN "Countdown:"
LET i = 0
WHILE (i <= 10) DO
PRINTLN "T plus ",i
INC i
ENDWHILE
See Also:
DEC
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson